package com.bienvenue.main.adapter;

import android.support.annotation.Nullable;

import com.bienvenue.main.R;
import com.bienvenue.main.model.MainBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.adapter
 * @ClassName: MainPositionsAdapter
 * @Description: java类作用描述
 * @Author: liys
 * @CreateDate: 2020/9/7 17:13
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/7 17:13
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class MainPositionsAdapter extends BaseQuickAdapter<MainBean, BaseViewHolder> {
    public MainPositionsAdapter() {
        super(R.layout.item_main_positions);
    }

    @Override
    protected void convert(BaseViewHolder helper, MainBean item) {
        helper.setText(R.id.tv_position, item.getPositionsType())
                .setText(R.id.tv_money, item.getMoneyIntervalle())
                .setText(R.id.tv_prompt_name, item.getPromptName())
                .setText(R.id.tv_education, item.getEducation())
                .setText(R.id.tv_address, item.getAddress())
                .addOnClickListener(R.id.item_click);
    }
}
